package com.scott.user.service;

import com.scott.user.dao.UserDao;
import com.scott.user.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {

    @Resource
    private UserDao dao;

    public User queryById(Long id) {
        return dao.findById(id);
    }
}